/*
 * @Descripttion: 胡腾辉 | feico
 * @version: V1.0
 * @Author: feico
 * @Date: 2022-02-22 16:27:41
 * @LastEditors: feico
 * @LastEditTime: 2022-02-22 17:06:03
 */
import { GET_CHANNEL_LIST,GET_ARTICLE_LIST } from '../constants';
const initValue={
    channels:[],
    articles:{}
}
export default function article(state=initValue,action){
    switch(action.type){
        case GET_CHANNEL_LIST:
            return {
                ...state,
                channels:action.data
            }
            case GET_ARTICLE_LIST:
                return {
                    ...state,
                    articles:action.data
                }
            default:
                return state
    }
}